﻿// EXP0345.cpp : 再一次改写程序，这次使用auto关键字。
//

#include <iostream>
using namespace std;

int main()
{
	int ia[3][4] = { {0,1,2,3},{4,5,6,7},{8,9,10,11} };

	//方法三
	for (auto p = &ia[0]; p != &ia[3]; ++p)
	{
		for (auto q = *p; q != *p + 4; ++q)
		{
			cout << *q << "\t";
		}
		cout << endl;
	}
}


